package com.bookdemo.dao;

import com.bookdemo.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zhu
 *
 */
@Mapper
@Repository // 将Dao类声明为Bean
public interface UserDao {
    User getUserByMessage(@Param("username") String username, @Param("password") String password);

    List<User> findAllUser();
}
